import request from '@/utils/request'

/**
 * 企业尽职调查搜索
 */

export function getDueDiligenceSearch(query) {
    return request({
        url: '/report/enterprise/query',
        method: 'get',
        params: query
    })
}


/**
 * 招商准入
 */
export function getInvestReport(data) {
    return request({
        url: '/report/invest/getInvestAnalysisReport',
        method: 'post',
        data: data
    })
}

/**
 * 招商准入PDF
 */
export function getInvestReportPDF(data) {
    return request({
        url: '/report/invest/getInvestAnalysisReportPdf',
        method: 'post',
        data: data
    })
}

/**
 * 财务报告
 */
export function getFinancialReport(data) {
    return request({
        url: '/report/financial/getFinancialAnalysisReport',
        method: 'post',
        data: data
    })
}

/**
 * 财务报告PDF
 */
export function getFinancialReportPDF(data) {
    return request({
        url: '/report/financial/getFinancialAnalysisReportPdf',
        method: 'post',
        data: data
    })
}

/**
 * 供应链授权获取H5回调
 */
export function getSCCallBack(data) {
    return request({
        url: '/report/rollback/getH5Url',
        method: 'post',
        data
    })
}

/**
 * 供应链报告
 */
export function getSellerChainReport(data) {
    return request({
        url: '/report/sellerChain/getSellerChainAnalysisReport',
        method: 'post',
        data
    })
}

/**
 * 供应链报告
 */
export function getSellerChainReportPDF(data) {
    return request({
        url: '/report/sellerChain/getSellerChainAnalysisReportPdf',
        method: 'post',
        data
    })
}

/**
 * 判断-供应链授权结果
 */
export function getSellerChainAuth(data) {
    return request({
        url: '/report/rollback/getAuthResult',
        method: 'post',
        data
    })
}
